Skip to content

Conversation

al45tair
Copy link
Contributor

@al45tair al45tair commented Sep 5, 2025

We used to try to use process_vm_readv() if CAP_SYS_PTRACE is enabled. This avoided using signal handlers to catch crashes when we try to read through an invalid pointer, but it complicates the code and it turns out not to work on some Linux kernels where the process_vm_readv() syscall is unavailable.

rdar://159930644

We used to try to use `process_vm_readv()` if `CAP_SYS_PTRACE` is
enabled.  This avoided using signal handlers to catch crashes when
we try to read through an invalid pointer, but it complicates the
code and it turns out not to work on some Linux kernels where
the `process_vm_readv()` syscall is unavailable.

rdar://159930644
@al45tair al45tair requested a review from mikeash as a code owner September 5, 2025 10:40
@al45tair al45tair requested a review from owenv September 5, 2025 10:40
@al45tair
Copy link
Contributor Author

al45tair commented Sep 5, 2025

@swift-ci Please smoke test

@al45tair
Copy link
Contributor Author

al45tair commented Sep 5, 2025

Linux failure doesn't look related.

@al45tair
Copy link
Contributor Author

al45tair commented Sep 5, 2025

@swift-ci Please smoke test Linux Platform

@al45tair al45tair merged commit 3e74869 into swiftlang:main Sep 9, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants